package 算法.查找;

public class 基本查找 {
    public static void main(String[] args) {
        int[] arr={12,13,14,15,16,17,55,44,66};
        System.out.println(basicSearch(arr, 12));

    }
    public static boolean basicSearch(int[] arr,int number){
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]==number)
            {
                return true;
            }
        }
        return false;
    }
}
